package com.liuhung.base.util;

import java.util.ResourceBundle;

public class PropUtil {
	private static final ResourceBundle bundle = ResourceBundle
			.getBundle("csoft_default");
	public static String ROOT_UPLOAD_PATH ="/fore/upload/";
	public static String DEFAULT_UPLOAD_PATH="/fore/upload/default/";
	public static String FILE_UPLOAD_PATH="/fore/upload/file/";
	public static String IMG_UPLOAD_PATH="/fore/upload/img/";
	public static String FLASH_UPLOAD_PATH="/fore/upload/flash/";
	public static String MEDIA_UPLOAD_PATH="/fore/upload/media/";
	public static String ROOT_UPLOAD_URL ="/fore/upload/";
	public static String DEFAULT_UPLOAD_URL="/fore/upload/default/";
	public static String FILE_UPLOAD_URL="/fore/upload/file/";
	public static String IMG_UPLOAD_URL="/fore/upload/img/";
	public static String FLASH_UPLOAD_URL="/fore/upload/flash/";
	public static String MEDIA_UPLOAD_URL="/fore/upload/media/";
	
	public static long UPLOAD_MAXSIZE=1000000;
	
	
	public static String STATIC_DIR ="/static";
	
	public static String PRO_NAME ="西北医疗平台";
	public static String PRO_KEYWORDS ="西北医疗,西北医疗平台,移动医疗,预约就诊,网上挂号,寻医问药,医院查询,医生查询,科室查询,疾病查询";
	public static String PRO_DESCRIPTION ="西北医疗平台致力于整合西北地区的医疗资源, 为患者提供方便快捷的医疗服务, 为医疗机构提供及时周到的网络服务,为相关厂商提供及时到位的信息服务.与此同时,西北医疗平台将整合移动互联网资源,推出一系列移动端应用,为广大患者和医师们提供工作便利.";
	
	public static int PAGE_SIZE5=5;
	public static int PAGE_SIZE10=10;
	public static int PAGE_SIZE20=20;
	public static int PAGE_SIZE50=50;
	public static int PAGE_SIZE100=100;
	static {
		
		ROOT_UPLOAD_PATH = getROOT_UPLOAD_PATH();
		DEFAULT_UPLOAD_PATH = getROOT_UPLOAD_PATH()+ getDEFAULT_UPLOAD_PATH();
		FILE_UPLOAD_PATH = getROOT_UPLOAD_PATH()+ getFILE_UPLOAD_PATH();
		IMG_UPLOAD_PATH = getROOT_UPLOAD_PATH()+ getIMG_UPLOAD_PATH();
		FLASH_UPLOAD_PATH = getROOT_UPLOAD_PATH()+ getFLASH_UPLOAD_PATH();
		MEDIA_UPLOAD_PATH = getROOT_UPLOAD_PATH()+ getMEDIA_UPLOAD_PATH();
		
		ROOT_UPLOAD_URL = getROOT_UPLOAD_URL();
		DEFAULT_UPLOAD_URL = getROOT_UPLOAD_URL()+ getDEFAULT_UPLOAD_URL();
		FILE_UPLOAD_URL = getROOT_UPLOAD_URL()+ getFILE_UPLOAD_URL();
		IMG_UPLOAD_URL = getROOT_UPLOAD_URL()+ getIMG_UPLOAD_URL();
		FLASH_UPLOAD_URL = getROOT_UPLOAD_URL()+ getFLASH_UPLOAD_URL();
		MEDIA_UPLOAD_URL = getROOT_UPLOAD_URL()+ getMEDIA_UPLOAD_URL();
		
		UPLOAD_MAXSIZE =getUPLOAD_MAXSIZE();
		PAGE_SIZE5=getPAGE_SIZE5();
		PAGE_SIZE10=getPAGE_SIZE10();
		PAGE_SIZE20=getPAGE_SIZE20();
		PAGE_SIZE50=getPAGE_SIZE50();
		PAGE_SIZE100=getPAGE_SIZE100();
	}
	
	public static long getUPLOAD_MAXSIZE() {
		return Long.parseLong(bundle.getString("UPLOAD_MAXSIZE")) ;
	}
	
	public static String getDEFAULT_UPLOAD_PATH() {
		return bundle.getString("DEFAULT_UPLOAD_PATH");
	}
	
	public static String getFILE_UPLOAD_PATH() {
		return bundle.getString("FILE_UPLOAD_PATH");
	}
	
	public static String getIMG_UPLOAD_PATH() {
		return bundle.getString("IMG_UPLOAD_PATH");
	}
	public static String getFLASH_UPLOAD_PATH() {
		return bundle.getString("FLASH_UPLOAD_PATH");
	}

	public static String getMEDIA_UPLOAD_PATH() {
		return bundle.getString("MEDIA_UPLOAD_PATH");
	}
	public static String getROOT_UPLOAD_PATH() {
		return bundle.getString("ROOT_UPLOAD_PATH");
	}
	
	/*******************************************/
	public static String getROOT_UPLOAD_URL() {
		return bundle.getString("ROOT_UPLOAD_URL");
	}
	
	public static String getDEFAULT_UPLOAD_URL() {
		return bundle.getString("DEFAULT_UPLOAD_URL");
	}
	
	public static String getFILE_UPLOAD_URL() {
		return bundle.getString("FILE_UPLOAD_URL");
	}
	
	public static String getIMG_UPLOAD_URL() {
		return bundle.getString("IMG_UPLOAD_URL");
	}
	public static String getFLASH_UPLOAD_URL() {
		return bundle.getString("FLASH_UPLOAD_URL");
	}

	public static String getMEDIA_UPLOAD_URL() {
		return bundle.getString("MEDIA_UPLOAD_URL");
	}
	
	public static String getSTATIC_DIR() {
		return bundle.getString("STATIC_DIR");
	}
	
	public static String getPRO_NAME() {
		return bundle.getString("PRO_NAME");
	}
	
	public static String getPRO_KEYWORDS() {
		return bundle.getString("PRO_KEYWORDS");
	}
	public static String getPRO_DESCRIPTION() {
		return bundle.getString("PRO_DESCRIPTION");
	}
	
	
	
	
	
	public static int getPAGE_SIZE5(){
		return Integer.parseInt(bundle.getString("PAGE_SIZE5"));
	}
	public static int getPAGE_SIZE10(){
		return Integer.parseInt(bundle.getString("PAGE_SIZE10"));
	}
	public static int getPAGE_SIZE20(){
		return Integer.parseInt(bundle.getString("PAGE_SIZE20"));
	}
	public static int getPAGE_SIZE50(){
		return Integer.parseInt(bundle.getString("PAGE_SIZE50"));
	}
	public static int getPAGE_SIZE100(){
		return Integer.parseInt(bundle.getString("PAGE_SIZE100"));
	}
	
}